package com.yi.apiboss.service;

import com.yi.apiboss.remote.ServiceDriverUserClient;
import com.yi.internalcommon.dto.DriverCarBindingRelationship;
import com.yi.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 田毅
 * @since 2022-08-16
 */
@Service
public class DriverCarBindingRelationshipService {

    @Autowired
    ServiceDriverUserClient driverUserClient;
    /**
     * 司机车辆绑定
     * @param driverCarBindingRelationship
     * @return
     */
    public ResponseResult bind(DriverCarBindingRelationship driverCarBindingRelationship){
        return driverUserClient.bind(driverCarBindingRelationship);
    }
    /**
     * 司机车辆解绑
     * @param driverCarBindingRelationship
     * @return
     */
    public ResponseResult unBind(DriverCarBindingRelationship driverCarBindingRelationship){
        return driverUserClient.unbind(driverCarBindingRelationship);
    }
}
